package us.gaaoc.framework.webapp.backingbeans.clerk;

import javax.faces.context.FacesContext;

import us.gaaoc.framework.model.Court;
import us.gaaoc.framework.webapp.backingbeans.BaseBackingBean;
import us.gaaoc.framework.webapp.controllers.model.TableView;



public class ClerkTableViews extends java.util.LinkedList<TableView>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4328847685386760032L;
	
	public ClerkTableViews()
	{
		super();
		BaseBackingBean baseBackingBean = new BaseBackingBean();	
		// if the court is accessed through clerk's authority
		
		Court c = (Court) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("court");
		
	
		if(c.isThruClerksAuthority())
		{
			add(new TableView("default","",true,2,2,2,2,2,false)); //Imported Filings for Clerk's Authority
		}
		else
		{	
		add(new TableView("failedToImport","Failed To Import",true,22,22,22,22,22,false));
		add(new TableView("queued","Queued For Import",true,21,21,21,21,21,false));
		add(new TableView("disposed","Cases Decided",true,6,6,6,6,6,false));
		add(new TableView("rejected","Rejected",true,3,3,3,3,3,false));
		add(new TableView("imported","Imported",true,2,2,2,2,2,false));
		add(new TableView("received","Received Filings",true,14,14,14,14,1,false));
		add(new TableView("allReceived","All Received Filings",true,18,20,20,20,1,false));
		add(new TableView("readyToImport","Ready To Import",true,20,20,20,20,20,false));
		add(new TableView("default","Clerk Dashboard",true,1,1,1,1,1,false)); //newFilings
		}
		
		
	}
	
}
